package hash

import (
	"crypto/sha256"
	"encoding/hex"
)

func Sha256String(data string) string {
	return Sha256Byte([]byte(data))
}

func Sha256Byte(data []byte) string {
	hash := sha256.Sum256(data)
	return hex.EncodeToString(hash[:])
}
